package com.liuyang.demo.time;

import cn.hutool.core.date.DateUtil;
import org.apache.commons.lang3.time.DateUtils;

import java.text.ParseException;
import java.util.Date;

public class ZeroTime {
    public static final String DATETIME = "yyyy-MM-dd HH:mm:ss";

    public static void main(String[] args) throws ParseException {
        String dateStr= "0000-00-00 00:00:00";
        Date date = DateUtils.parseDateStrictly(dateStr, DATETIME);
        System.out.println(date);
        System.out.println(date.getTime());
    }
}
